package com.ruoyi.web.a2.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.a2.dto.PointCleanJson;
import com.ruoyi.web.a2.service.ITool2aSpaceTimeResampleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "时空重采样（免登录）")
@RestController
@RequestMapping("/webs/tool2aSpaceTimeResample")
public class ToolController extends BaseController
{

    //时空重采样
    @Autowired
    private ITool2aSpaceTimeResampleService tool2aSpaceTimeResampleService;

    @ApiOperation("业务处理（AIS）")
    @PostMapping("/handleAIS")
    public AjaxResult handleAIS(@Validated @RequestBody final PointCleanJson json)
    {
        return AjaxResult.success(tool2aSpaceTimeResampleService.handleAIS(json));
    }

    @ApiOperation("业务处理（ADS-B）")
    @PostMapping("/handleADS")
    public AjaxResult handleADS(@Validated @RequestBody final PointCleanJson json)
    {
        return AjaxResult.success(tool2aSpaceTimeResampleService.handleADS(json));
    }


}
